<div class="card card-default">
  <div class="card-header">
    <h4 class="card-title row">
      <a data-parent="#filter-accordion" data-toggle="collapse" href="#filter">
        <span class="col-8"><%= t('admin.statistic.filter') %></span>
        <span class="col-4 text-right text-muted"><%= t('admin.statistic.click-to-expand') %></span>
      </a>
    </h4>
  </div>
  <div id="filter" class="card-collapse collapse">
    <div class="card-body">
      <%= form_for form_target, url: url, html: {method: :get, class: 'form-horizontal'} do |f| %>
        <% form_target.filters.each do |filter| %>
          <div class="form-group">
            <%= f.datagrid_label filter, class: 'col-2 control-label' %>
            <div class="col-10">
              <%= f.datagrid_filter filter, class: 'form-control' %>
            </div>
          </div>
        <% end %>
        <div class="form-group">
          <div class="col-offset-2 col-10">
            <%= f.submit t('datagrid.form.submit'), class: 'btn btn-primary' %>
          </div>
        </div>
      <% end %>
    </div>
  </div>
</div>
